﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Client
{
    class CPCC
    {
        public PacketController Pc { get; set; }
        Client form;

        public CPCC(Client ClientForm)
        {
            form = ClientForm;
        }

        public void CallRequest(string calling, string called)
        {
            form.WriteLine(String.Format("Oczekiwanie na połączenie od {0} do {1}...", calling, called));
            Pc.SendACK(String.Format("call_request {0} {1} .", calling, called));
        }

        public void CallTeardown(string calling, string called)
        {
            form.WriteLine(String.Format("Usuwanie połączenia od {0} do {1}...", calling, called));
            Pc.SendACK(String.Format("call_teardown {0} {1} .", calling, called));
        }
    }
}
